<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>vue基础知识复习</title>
    <style>
        .post{
            width: 400px;
            border-radius: 10px;
            padding: 10px;
            text-align: center;
            background-color: rgb(216, 216, 216);
        }
    </style>
</head>
<body>
    
    <div id="app">
        <p v-if="isIf">v-if的指令</p>
        <p v-show="isShow">v-show的指令</p>
        <button @click="handleClick">不传参</button>
        <button @click="handleClick(a,$event)">传参</button>
        <input type="text" v-model.lazy="text">
        <p v-text="text"></p>
        <my-post :title="'一个演员的自我修养'">
            <button>点击我获取秘籍</button>
            <p>哈哈哈</p>
        </my-post>
        <button @click="switchCom('tab-card1')">card1</button>
        <button @click="switchCom('tab-card2')">card2</button>
        <component v-bind:is="'my-post'"></component>
        <ul>
            <a href="">链接</a>
        </ul>
        <table>
            <tr is="my-tr"></tr>
            
        </table>
    </div>
    <script src="./js/vue.js"></script>
    <script src="./js/vue基础知识复习.js"></script>
</body>
</html>